package com.lunwen.lunwen.api;

import com.lunwen.lunwen.bean.Result;
import com.lunwen.lunwen.bean.ThesisTask;
import com.lunwen.lunwen.bean.ThesisTaskLog;
import com.lunwen.lunwen.services.ThesisTaskLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * (ThesisTaskLog)表控制层
 *
 * @author makejava
 * @since 2020-08-12 09:38:08
 */
@RestController
@RequestMapping("api")
public class ThesisTaskLogController {

    /**
     * 服务对象
     */
    @Autowired
    private ThesisTaskLogService thesisTaskLogService;

    /**
     * 通过主键查询单条数据
     *
     * @param
     * @return 单条数据
     */
    @GetMapping("thesistaskloglist")
    public Result thesistaskloglist() {

        Result result = new Result();
        result.setResult("503","任务完成成功！");
        result.setData(this.thesisTaskLogService.queryAllByLimit(0,100));
        return result;
    }


}